//
//  Personnal\ViewController.m
//  星期6
//
//  Created by 宗镇荣 on 16/2/22.
//  Copyright © 2016年 zzr. All rights reserved.
//

#import "Personnal\ViewController.h"
#import "UIImageView+WebCache.h"
#import "DetailViewController.h"

@interface Personnal_ViewController ()
@property (nonatomic) UIImageView *imageView;

@end

@implementation Personnal_ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self setNavigationTitle:@"喜爱"];
    self.imageView = [[UIImageView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    self.imageView.image = [UIImage imageNamed:@"shengdan2"];
    [self.view addSubview:self.imageView];
   
    UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(15, 150, 150,40)];
    //[btn setBackgroundColor:[UIColor redColor]];
    [btn setTitle:@"我的收藏" forState:UIControlStateNormal];
    [btn setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
    [btn addTarget:self action:@selector(btnClick:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
}

- (void)btnClick:(UIButton *)btn {

    DetailViewController *view = [[DetailViewController alloc] init];
    [self.navigationController pushViewController:view animated:NO];
    view.hidesBottomBarWhenPushed = YES;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
